package com.qms.qep.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.qms.common.annotation.Excel;
import com.qms.common.core.domain.BaseEntity;

/**
 * 检测设备对象 equipment
 * 
 * @author qep
 */
public class Equipment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 设备编号 */
    @Excel(name = "设备编号")
    private String code;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String name;

    /** 设备类型 */
    @Excel(name = "设备类型")
    private String type;

    /** 设备型号 */
    @Excel(name = "设备型号")
    private String model;

    /** 制造商 */
    @Excel(name = "制造商")
    private String manufacturer;

    /** 上次校准日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上次校准日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastCalibration;

    /** 下次校准日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下次校准日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date nextCalibration;

    /** 校准状态 */
    @Excel(name = "校准状态")
    private String calibrationStatus;

    /** 设备位置 */
    @Excel(name = "设备位置")
    private String location;

    /** 状态（1有效 0无效） */
    @Excel(name = "状态", readConverterExp = "1=有效,0=无效")
    private Integer status;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }

    public void setModel(String model) 
    {
        this.model = model;
    }

    public String getModel() 
    {
        return model;
    }

    public void setManufacturer(String manufacturer) 
    {
        this.manufacturer = manufacturer;
    }

    public String getManufacturer() 
    {
        return manufacturer;
    }

    public void setLastCalibration(Date lastCalibration) 
    {
        this.lastCalibration = lastCalibration;
    }

    public Date getLastCalibration() 
    {
        return lastCalibration;
    }

    public void setNextCalibration(Date nextCalibration) 
    {
        this.nextCalibration = nextCalibration;
    }

    public Date getNextCalibration() 
    {
        return nextCalibration;
    }

    public void setCalibrationStatus(String calibrationStatus) 
    {
        this.calibrationStatus = calibrationStatus;
    }

    public String getCalibrationStatus() 
    {
        return calibrationStatus;
    }

    public void setLocation(String location) 
    {
        this.location = location;
    }

    public String getLocation() 
    {
        return location;
    }

    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public void setUpdateTime(Date updateTime) 
    {
        this.updateTime = updateTime;
    }

    public Date getUpdateTime() 
    {
        return updateTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("name", getName())
            .append("type", getType())
            .append("model", getModel())
            .append("manufacturer", getManufacturer())
            .append("lastCalibration", getLastCalibration())
            .append("nextCalibration", getNextCalibration())
            .append("calibrationStatus", getCalibrationStatus())
            .append("location", getLocation())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
} 